package call_handler;

public class Call {
    private Rank rank;
    private Caller caller;
    private Employee handler;

    public Call(Caller caller) {
	this.caller = caller;
    }

    public void setHandler(Employee handler) {
	this.handler = handler;
    }

    /**
     * Play recorded message to the customer.
     */
    public void reply(String message) {
	System.out.println(message);
    }

    public Rank getRank() {
	return rank;
    }

    public void setRank(Rank rank) {
	this.rank = rank;
    }

    public Rank incrementRank() {
	return rank.increasingRank();
    }

    public void disconnect() {
	reply("Thank you for calling.");
    }
}